package com.manager.service.impl;

import com.manager.dao.SpeciesMapper;
import com.manager.service.SpeciesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpeciesServiceImpl implements SpeciesService {
    @Autowired
    private SpeciesMapper speciesMapper;

    @Override
    public List<String> getAll() {
        /*导致空指针？*/
        /*这样可以吗？？？*/
        return speciesMapper.selectAll();
        /*这句话可以删除？*/

        /*for (int i = 0; i < list.size(); i++) {
            strings[i] = list.get(i);
        }
        return strings;*/
    }
}
